package com.zdb.demo.design.pattern.creational.simplefactory;

public class Test {

    public static void main(String[] args) {
        VideoFactory factory = new VideoFactory();
        Video video = factory.getVideo("java");
        video.produce();

        Video pythonVideo = factory.getVideoByReflect("com.zdb.demo.design.pattern.creational.simplefactory.PythonVideo");
        pythonVideo.produce();
    }

}
